package com.scuec.groupfive.service;

import com.scuec.groupfive.entity.Favorite_z;

import java.util.List;

public interface Favorite_zService {

    // 获取用户收藏列表
    List<Favorite_z> getFavoriteList(Long userId);

    // 添加收藏
    boolean addFavorite(Long userId, Long questionId);

    // 取消收藏
    boolean removeFavorite(Long userId, Long questionId);

    // 检查是否已收藏
    boolean isFavorite(Long userId, Long questionId);
}